{% extends 'partials/base.html' %}
{% block title %}删除商品{% endblock %}
{% load crispy_forms_tags %}
{% block content %}
<div class="container">
    <div class="row-mt-5">
        <div class="col-md-6 offset-md-3">
            <div class="border bg-white p-3">
                <h3>删除商品</h3>
                <hr>
                    <div class="alert alert-danger">
                        <h4>你确定要删除[{{item.name}}]这个商品?</h4>
                    </div>
                <form method="post">
                    {% csrf_token %}
                    <!--{{item}}-->
                    <a class="btn btn-secondary" href="{% url 'dashboard-product' %}">取消</a>
                    <input class="btn btn-danger" type="submit" value="狠心删除">
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}